package org.example.system.service.impl;

import org.example.core.entity.SysUser;
import org.example.system.mapper.SysUserMapper;
import org.example.system.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    public SysUserMapper userMapper;

    @Override
    public List<SysUser> selectUserList(SysUser user) {
        //        if (id == 1) {
//            throw new CustomException();
//        }
//        if (id == 2) {
//            throw new CustomException("小王今天没有来上班！！！");
//        }
//        if (id == 3) {
//            throw new CustomException("小王今天没有来上班！！！", new RuntimeException());
//        }
        return userMapper.selectUserList(user);
    }


}
